﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Windows.Navigation;


namespace client
{
    public partial class RestaurantPage : PhoneApplicationPage
    {
        // Constructor
        MobileClient mClient;


        public RestaurantPage()
        {
            InitializeComponent();

            mClient = new MobileClient();
            DataContext = mClient;
        }

       

        private void StartButtonClick(object sender, RoutedEventArgs e)
        {
            mClient.GPSService();
            mClient.Latitude = "loading..."; 
            mClient.Longitude = "loading...";
        }

        private void MenuClick(object sender, RoutedEventArgs e)
        {
            this.NavigationService.Navigate(new Uri("/Menu.xaml", UriKind.Relative));
        }


    }
}